package com.zhangshuo.patternDesign.strategy.simple;

/**
 * Created by shuo.zhang on 2017-10-22.
 */
public class MyClass {

    public void method(){

        //想要在这里插入一段代码
        System.out.println("这是我的方法");
    }


    public void method(MyInterface myInterface){
        myInterface.insertCode();
        method();
    }
}
